/* 请求接口模块 */
import ajax from '@/utils/ajax';

export const reqRegister = ({user,pwd, type}) => ajax('/register', {user, pwd, type}, 'POST')
export const reqLogin = ({user,pwd}) => ajax('/login', {user, pwd}, 'POST')
export const reqUpdate = (userData) => ajax('/update', userData, 'POST')
export const reqAuth = (token) => ajax('/auth', {token}, 'POST')
export const reqTalentlist = (workerJob='') => ajax('/talentlist', {workerJob}, 'GET')
export const reqPushjoblist = (data) => ajax('/pushjoblist', data, 'GET')
export const reqJoblist = (keyword='') => ajax('/joblist', {keyword}, 'GET')
export const reqAddjob = (data) => ajax('/addjob', data, 'POST')
export const reqRmjob = (_id) => ajax('/rmjob', {_id}, 'POST')